#pragma once
#include <string>
using namespace std;
//#include "DirectXFramework.h"
#include <d3d9.h>
#include <d3dx9.h>
#include "Card.h"

class Hand
{
private:
	Card slot[5];
	bool select[5], select2[5];
	int high;

	bool firstCardPair[5];
	bool secondCardPair[5];

public:
	Hand();
	~Hand();
	void Deal();
	void SelectCard(int);
	void SetCard(int whichCard, int value, short suit, bool faceUp, float rotation, float scale, D3DCOLOR color);
	void SetCard2(int whichCard, Card card, bool faceUp, float rotation, float scale, D3DCOLOR color);
	void RigHand(int value1, int value2, int value3, int value4, int value5, short suit1, short suit2, short suit3, short suit4, short suit5);
	void CardFlip(int);
	bool CardSpin(int,float);
	bool CardMove(int,float,D3DXVECTOR3);
	bool CardSlide(int,float,D3DXVECTOR3);
	bool isSelected(int checkThis);


	void SetCardPosition(int i, D3DXVECTOR3 pos) {slot[i].position = pos;};
	void SetCardScale(int i, float s) {slot[i].scale = s;};

	int HighCard();

	bool GetSelect(int s) {return select[s];}

	//LPCWSTR
	LPCWSTR Check();
	void OrganizeHand();
	void OrganizeHand2();
	Card GetCard(int s) {return slot[s];};

	void CompThink();
};